class cDynamicItemModel {
  String imageurl;
  String name;
  String data;
  String time;
  String tip1;
  String tip2;
  String content;
  List<String> images;
  int likenum;
  int commentnum;
  int focusnum;
  bool isLike;
  bool isFocus;

  cDynamicItemModel(
      {this.imageurl,
        this.name,
        this.data,
        this.time,
        this.tip1,
        this.tip2,
        this.content,
        this.images,
        this.likenum,
        this.commentnum,
        this.focusnum,
        this.isLike,
        this.isFocus});

  cDynamicItemModel.fromJson(Map<String, dynamic> json) {
    imageurl = json['imageurl'];
    name = json['name'];
    data = json['data'];
    time = json['time'];
    tip1 = json['tip1'];
    tip2 = json['tip2'];
    content = json['content'];
    images = json['images'].cast<String>();
    likenum = json['likenum'];
    commentnum = json['commentnum'];
    focusnum = json['focusnum'];
    isLike = json['isLike'];
    isFocus = json['isFocus'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['imageurl'] = this.imageurl;
    data['name'] = this.name;
    data['data'] = this.data;
    data['time'] = this.time;
    data['tip1'] = this.tip1;
    data['tip2'] = this.tip2;
    data['content'] = this.content;
    data['images'] = this.images;
    data['likenum'] = this.likenum;
    data['commentnum'] = this.commentnum;
    data['focusnum'] = this.focusnum;
    data['isLike'] = this.isLike;
    data['isFocus'] = this.isFocus;
    return data;
  }
}